package com.example.administrator.myapplication.find.assortment.bean.bottomEntity;

import android.databinding.ObservableInt;
import android.support.v4.view.PagerAdapter;

import com.example.administrator.myapplication.BR;
import com.example.administrator.myapplication.R;
import com.example.administrator.myapplication.until.CommentPagerAdapter;
import com.google.gson.annotations.Expose;

import java.util.List;



public class BottomEntity {
    private int ret;

    private String responseId;

    private List<BottomData> data ;

    //private List<AdTypes> adTypes ;
    @Expose(serialize = false,deserialize = false)
    private PagerAdapter adapter;
    @Expose(serialize = false,deserialize = false)
    private ObservableInt pager = new ObservableInt(0);

    public ObservableInt getPager() {
        return pager;
    }

    public PagerAdapter getAdapter() {
        if(adapter==null){
            adapter = new CommentPagerAdapter<>(data, R.layout.heardline_image, BR.bottomData1);
        }
        return adapter;
    }

    public void setAdapter(PagerAdapter adapter) {
        this.adapter = adapter;
    }

    public int getRet() {
        return ret;
    }

    public void setRet(int ret) {
        this.ret = ret;
    }

    public String getResponseId() {
        return responseId;
    }

    public void setResponseId(String responseId) {
        this.responseId = responseId;
    }

    public List<BottomData> getData() {
        return data;
    }

    public void setData(List<BottomData> data) {
        this.data = data;
    }

//    public List<AdTypes> getAdTypes() {
//        return adTypes;
//    }
//
//    public void setAdTypes(List<AdTypes> adTypes) {
//        this.adTypes = adTypes;
//    }
}
